package entity;

import java.util.List;

public class Function {

    private String name;

    private String returnType;

    private Integer parameterNumber;

    private List<String> parameter;

    public Function() {
    }

    public Function(String name, String returnType, Integer parameterNumber, List<String> parameter) {
        this.name = name;
        this.returnType = returnType;
        this.parameterNumber = parameterNumber;
        this.parameter = parameter;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    public Integer getParameterNumber() {
        return parameterNumber;
    }

    public void setParameterNumber(Integer parameterNumber) {
        this.parameterNumber = parameterNumber;
    }

    public List<String> getParameter() {
        return parameter;
    }

    public void setParameter(List<String> parameter) {
        this.parameter = parameter;
    }

    @Override
    public String toString() {
        return "Function{" +
                "name='" + name + '\'' +
                ", returnType='" + returnType + '\'' +
                ", parameterNumber=" + parameterNumber +
                ", parameter=" + parameter +
                '}';
    }
}
